<?php
namespace api\user\validate;

use think\Validate;

class OtcValidate extends Validate
{
    protected $rule = [
        'order_type'         =>'require',
        'buy_num'           =>'require|number|gt:0',
        'pay_password'       =>'require',
    ];
    protected $message = [
        'order_type'              =>'请选择交易类型',
	    'buy_num.require'         =>'请输入交易量',
        'buy_num.number'          =>'请输入有效交易',
        'buy_num.gt'               =>'请输入正确的数量或金额',
        'pay_password.require'    =>'请输入支付密码',
    ];

}